#找出单词中出现次数最多的字母并输出
word = input("输入单词")
words = []
max_num = 0
for i in range(len(word)):
     words.append(word[i])
for x in words:
    num = words.count(x)
    if num > max_num:
        max_num = num
        max_word = x
print(max_word,max_num)